ClassFactory.defineClass("M3PickListItem", TextItem);

// class (static) properties and methods
M3PickListItem.addProperties({
    // (just placeholders for now - these are set dynamically)
	dialog:null,
	currentEditor:null,
    
    // create the picker dialog
	makeDialog : function (list) {
		this.dialog = Dialog.create({
			autoDraw:false,
			autoCenter:false,
			isModal:true,
			showModalMask: true,
			showHeader:false,
            showToolbar:false,
			width:230,
			height:310,
			bodyDefaults:{layoutMargin:1, membersMargin:1}
		});
	},
	// show the picker dialog at the specified position (could be smarter about this)
	showDialog : function (left, top) {
		this.dialog.moveTo(left, top);
		this.dialog.show();
	}
	// set the specified value and dismiss the picker dialog
	/*
	setValue : function (value) {
		this.setValue(value);
		this.dialog.hide();
	} */   
});